import request from "@/utils/request";

export const register = (data, captcha) => {
  return request.post("api/user/register?captcha=" + captcha, data);
};

export const captcha = () => {
  return request.get("api/captcha", { responseType: "arraybuffer" });
};

export const changePwd = (data) => {
  return request.post("api/user/change-password", data);
};
